<?php

/**
 * This file is part of the Pagizer package.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @copyright   Copyright (c) 2010 Advisa (http://www.advisa.fr)
 * @author      Pagizer Core Team <team@pagizer.org>
 * @package     pagizer
 * @subpackage  install
 */

// Initialize Framework
require_once("..".DIRECTORY_SEPARATOR."..".DIRECTORY_SEPARATOR."codizer".DIRECTORY_SEPARATOR."FrameworkInit.class.php");

// If module and action are called in request
if(!empty($_GET['module']) && !empty($_GET['action']) || isset($_GET['url']))
{
    // Dispatch module and action in backoffice mode
	f_core_Controller::getInstance()->isBackOffice()->dispatch();
}
else
{
    // Dispatch default module and default action in backoffice mode
	f_core_Controller::getInstance()->isBackOffice()->setModule("backoffice")->setAction("Display")->dispatch();
}